import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';

// 引入路由模块
import { ChangeDetectionRoutingModule } from './change-detection-routing.module';

// 引入组件
import { ChangeDetectionComponent } from './change-detection.component';
import { ProfileAgeComponent } from './profile-age.component';
import { ProfileNameComponent } from './profile-name.component';
import { ProfileCardComponent } from './profile-card.component';
import { ChangeChildComponent } from './child.component';
import { ParentComponent } from './parent.component';
import { CounterComponent } from './counter.component';
import { ChangesDemo1Component } from './changes-demo1/changes-demo1.component';
import { ChangesDemo2Component } from './changes-demo2/changes-demo2.component';
import { ChangesDemo3Component } from './changes-demo3/changes-demo3.component';


@NgModule({
  imports: [
    CommonModule,
    ChangeDetectionRoutingModule
  ],
  declarations: [
    ChangeDetectionComponent,
    ProfileAgeComponent,
    ProfileNameComponent,
    ProfileCardComponent,
    ChangeChildComponent,
    ParentComponent,
    CounterComponent,
    ChangesDemo1Component,
    ChangesDemo2Component,
    ChangesDemo3Component,
  ],
})
export class ChangeDetectionModule { }
